import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
    state: {
        isLogin: false,
        userName: '',
        workPlace: ''
    },
    mutations: {
        setLogin(state, data) {
            state.isLogin = data;
        },
        setUserName(state, data) {
            state.userName = data;
        },

        setWorkPlace(state, data) {
            state.workPlace = data;
        }

    },
    actions: {}
})
export default store
